<template>
	<view class="cu-form-group">
		<view class="title">{{picker.title}}</view>
		<picker mode="date" :value="picker.selectItem" :start="picker.start" :end="picker.end" @change="DateChange">
			<view class="picker">
				{{picker.selectItem}}
			</view>
		</picker>
	</view>
</template>

<script>
	export default{
		props: {
			picker: {type: Object}, // picker.range 选项列表 picker.selectItem 选中项
			selectItem: {type: String}
		},
		data() {
			return {
				index: -1
			}
		},
		methods:{
			DateChange(e) {
				this.picker.selectItem = e.detail.value
			},
		}
	}
</script>

<style>
</style>
